package com.suzhe.ymall.order.client;


import com.suzhe.ymall.common.pojo.ApiResEntity;
import com.suzhe.ymall.promotion.param.LockCouponParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "promotion-service",fallback  = PromotionClientFallBack.class)
public interface PromotionClient{
    @PostMapping("promotion/lockUserCoupon")
    ApiResEntity<Long> lockUserCoupon(@RequestBody LockCouponParam lockCouponParam);

}
